package cn.itnanls.util;

import cn.itnanls.exception.ParamIllegalException;

/**
 * @author Ding
 */
public enum ResultCode {
    /**成功
     *
     */
    SUCCESS(200,"success"),
    /**
     * 未知错误
     */
    UNKNOW_ERROR(10001,"unknow error"),
    /**
     * 业务错误
     */
    Business_ERROE(10002,"嘿嘿 大SB，这你都能报错"),
    /**
     * 参数错误
     */
    ParamIllegal_ERROR(10003,"参数非法");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
